/**
 * 
 */
package wikiParser.mapReduce.util;

import java.io.IOException;
import java.util.Iterator;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.MapReduceBase;
import org.apache.hadoop.mapred.OutputCollector;
import org.apache.hadoop.mapred.Reducer;
import org.apache.hadoop.mapred.Reporter;

public class IdentityReduce extends MapReduceBase implements Reducer<Text, Text, Text, Text> {
	public void reduce(Text key, Iterator<Text> values, OutputCollector<Text,Text> output, 
			Reporter reporter) throws IOException {
		while (values.hasNext()) {
			output.collect(key, values.next());
		}
	}
}